﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Business.Entities;
using Data.Database;


namespace Negocio
{
    public class ModuloLogic:BusinessLogic
    {
        Data.Database.ModuloAdapter modulodata;

    public Data.Database.ModuloAdapter Modulodata
    {
      get { return modulodata; }
      set { modulodata = value; }
    }

        
         public ModuloLogic()
        {
             modulodata = new ModuloAdapter();
        }
         public List<Modulo> getAll()
         {
             return (modulodata.GetAll());
         }

         public Modulo getOne(int id)
         {
             return (modulodata.GetOne(id));
         }

         public void delete(int id)
         {
             modulodata.Delete(id);
         }

         public void save(Business.Entities.Modulo mo)
         {
             modulodata.Save(mo);
         }

    }
}
